package com.netx.cubigraf.apps.temp;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;


public class Main {

	public static void main(String[] args) {
		try {
			// Create the user interface:
			Display display = new Display();
			Shell shell = new Shell(display, SWT.CLOSE | SWT.MIN);
			Window window = new Window(shell);
			window.toString();
			shell.open();
			while(!shell.isDisposed()) {
				if(!display.readAndDispatch()) {
					display.sleep();
				}
			}
			display.dispose();
		}
		catch(Throwable t) {
			System.out.print("Unexpected error: ");
			t.printStackTrace(System.out);
		}
	}
}
